#!/bin/bash

a[0]=1
a[1]=2
a[2]=3

for var in ${a[*]} #1 2 3 4 5
do
    echo "var=$var"
done
